import { defineStore } from 'pinia'
import { ref } from 'vue'

export const useTabbarIndexStore = defineStore('tabbarIndex', () => {
  const tabbarIndex = ref(0)
  const setTabbarIndex = (index: number) => {
    tabbarIndex.value = index
  }
  return {
    tabbarIndex,
    setTabbarIndex,
  }
})
